let { ADD_USERNAME } = require('../consts')

let defaultState = { username: ''}
export default function reducer(state = defaultState, action) {
    let result = Object.assign({}, state)
    switch (action.type) {
        case ADD_USERNAME:
                result.username = action.data
            break;
    
        default:
            break;
    };
    return result
};


